import { defineStore } from "pinia";
import { defaultStatusMap } from "../configs/defaultStatus/defaultStatusMap";
import { setTextStatus } from "./action";

export const useMaterialStore = defineStore("materialStore", {
	state: () => ({
		//当前选中组件
		currentmaterialCom: "single-select",
		coms: {
			"single-select": defaultStatusMap["single-select"](),
		},
	}),
	actions: {
		setTextStatus,
	},
});
